DECLARE @DBName SYSNAME
DECLARE @SQL NVARCHAR(2000)

SET @DBName = DB_NAME()


SET @SQL = 'ALTER DATABASE ' + @DBName + '
SET ANSI_NULLS ON,
ANSI_PADDING ON,
ANSI_WARNINGS ON,
ARITHABORT ON,
CONCAT_NULL_YIELDS_NULL ON,
QUOTED_IDENTIFIER ON,
NUMERIC_ROUNDABORT OFF'



EXEC SP_EXECUTESQL @SQL 
GO